Two-wire sensor for measuring a physical parameter

ABSTRACT

To measure a physical parameter, a two-wire sensor produces pulse-width modulated signals (PWM) whose pulse width is preferably modulated as a function of the physical parameter to be measured. To indicate an error or a malfunction, the two-wire sensor provides an error signal with a specifiable pulse-width ratio that is preferably 1:1, while asymmetric pulse-width ratios are provided for the measurement signals (PWM). To measure a physical parameter that assumes only one of two states or values, the two-wire sensor produces a first measurement signal with a specifiable asymmetric pulse-width ratio and a second measurement signal formed by inversion of the first measurement signal. A plurality of two-wire sensors can for example be connected to a common two-wire line and operated in time-multiplex mode.

BACKGROUND OF THE INVENTION

[0001] The invention relates to the field of semiconductor sensors, and in particular to a two-wire sensor.

[0002] A two-wire sensor includes a measuring sensor that measures a physical parameter such as for example temperature, pressure, or field strength of a magnetic field, and electronic components for processing the signals delivered by the measuring sensor. Both the power supply and the conducting of the measured and processed measurement signals use only two lines, accounting for the name two-wire sensor. A two-wire sensor has only two terminals that simultaneously serve to supply current and conduct the measured and processed measurement signals.

[0003] Two-wire sensors may include contactless magnetic switches which, depending on the strength and direction of the magnetic field to be measured, provide a measurement signal whose current is indicative of field strength. The structural element is passive as seen from outside in the simplest case (the current/voltage characteristic can change in other ways as well if appropriate and its internal resistance changes). When a current is imposed, the voltage that can be tapped changes and when a voltage is impressed, the resultant current changes. Both (also in combination) can be evaluated as a signal on the receiver side. Such two-wire sensors are used for example in motor vehicles as belt buckle switches or position switches. When two-wire sensors are used in safety-relevant areas, high reliability is necessary. In particular, a defective or improperly operating two-wire sensor must be detected in a timely manner.

[0004] Therefore, there is a need for an improved two-wire sensor.

SUMMARY OF THE INVENTION

[0005] A two-wire sensor provides a pulse-width modulated output signal (PWM) whose pulse width is preferably modulated as a function of the physical parameter to be measured. To indicate an error or a malfunction, the two-wire sensor provides a specifiable pulse-width ratio that is preferably 1:1, while asymmetric pulse-width ratios are provided for the measurement signals (PWM). To measure a physical parameter that assumes only one of two states or values, the two-wire sensor produces a first measurement signal with a specifiable asymmetric pulse-width ratio and a second measurement signal formed by inversion of the first measurement signal.

[0006] A plurality of two-wire sensors can be connected to a common two-wire line and operated in time-multiplex mode and the signals produced by the two-wire sensors are pulse-width modulated.

[0007] The two-wire sensor modulates the pulse width of the measurement signals as a function of the physical parameter to be measured.

[0008] An error or an improper function of the two-wire sensor can be indicated by an error signal with a specifiable pulse width. Preferably, the pulse-width ratio of the error signal is 1:1, while measurement signals with asymmetric pulse-width ratios are selected for showing the physical parameter to be measured. Different pulse-width ratios allow more than the physical parameter to be measured to be shown. That is, other information from the two-wire sensor can be displayed by different pulse-width ratios.

[0009] In a two-wire sensor that measures a physical parameter that assumes only two values or states, one embodiment provides for displaying the first value or state by a first measurement signal with a first specifiable pulse width and the second value or the second state by a second measurement signal produced by inverting the first measurement signal.

[0010] When the error signal exhibits the symmetrical pulse-width ratio of 1:1, inversion does not change the pulse-width ratio. Therefore, for example, changes in a magnetic field that inverts the signal have no effect on the error signal. If the two-wire sensor is defective or the leads are interchanged or a line to the two-wire sensor is broken or short-circuited, the sensor does not deliver any pulse-width modulated signals.

[0011] These and other objects, features and advantages of the present invention will become more apparent in light of the following detailed description of preferred embodiments thereof, as illustrated in the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWING

[0012]FIG. 1 illustrates a two-wire sensor;

[0013]FIG. 2 is a plot of a pulse-width modulated signal that is output from the two-wire sensor of FIG. 1 as a function of time;

[0014]FIG. 3 is a plot of two time windows with the pulse-width modulated signal as well as the analog sensor signal, all as a function of time; and

[0015]FIG. 4 illustrates a plurality of two-wire sensors each connected to a common two-wire line and operating in time-multiplex mode.

DETAILED DESCRIPTION OF THE INVENTION

[0016]FIG. 1 is a block diagram illustration of a two-wire sensor 10, which is connected to a voltage signal V on a line 12 through a resistor 14. A first lead 16 of the two-wire sensor 10 is connected to the resistor 14, and a second lead 18 of the two-wire sensor is connected to ground potential 20. The two-wire sensor outputs a pulse-width modulated signal (PWM) onto a line 20 via the first lead 16.

[0017]FIG. 2 is a plot of a pulse-width modulated signal that is output on the line 20 as a function of time. The signal may have a pulse-width ratio Th:Tp of 1:4, and one with 1:2 by dashed lines. The rise time Trp and the drop time Tfp of the pulses are selected so that the following conditions are met:

Trp<Tp·Rp/2; and

Tfp<Tp·Rp/2.

[0018] Tp is the period time of the pulse-width modulated signal and Rp is the ratio of the shortest high level to the period time Tp.

[0019] The pulse-width modulated signal on the line 20 can be evaluated, for example, by measuring the pulse-width ratio or by low-pass filtering the signal. The cut-off frequency of the low pass filter is selected such that the filter provides a DC value indicative of the high-to-low ratio.

[0020] The pulse-width modulated signals can, for example, be transmitted during time windows provided for the purpose, which are produced for example by turning the supply voltage on and off, by the pulse-width modulated signals themselves, or by a chip enable input provided on the two-wire sensors. The two-wire sensors thus exhibit an enable function. They can therefore be turned on and off.

[0021]FIG. 4 illustrates a plurality of two-wire sensors 10, 22, 24 each connected to a common two-wire line and operating them in time-multiplex mode. Each of the plurality of two-wire sensors 12, 22, 24 are connected to common two-wire lines 26, 28 and a common enable line 30. Each of the two-wire sensors 10, 22, 24 can also be uniquely identified by various switching thresholds at their chip enable inputs connected to the common enable line 30. As a result, N two-wire sensors can be connected to a common two-wire line and a common enable line, and N two-wire sensors require only three lines instead of N+1 lines. In another embodiment, each of the two-wire sensors 10, 22, 24 are uniquely identified, for example, by a uniquely associated address assigned to them and stored in a memory.

[0022] A time window can be defined for example by the zero crossing, the maximum or the minimum of the analog sensor signal. The time window ends on the next zero crossing, maximum or minimum, as applicable, of the analog sensor signal. Preferably at least one edge of the time window reproduces the time variation of the sensor signal. FIG. 3 shows the formation of time windows 40, 42 by the zero crossing of the analog sensor signal plotted along a line 44.

[0023] In another embodiment, the two-wire sensors feed current into the chip enable inputs, and the current is evaluated in the two-wire sensors in order to transmit additional information by varying the pulse-width ratio.

[0024] The two-wire sensor is especially suitable for use in safety-relevant areas because malfunctions of the two-wire sensor are easily detected.

[0025] Although the present invention has been shown and described with respect to several preferred embodiments thereof, various changes, omissions and additions to the form and detail thereof, may be made therein, without departing from the spirit and scope of the invention. 

1. Method for measuring a physical parameter by means of a two-wire sensor, characterized in that the two-wire sensor produces pulse-width modulated signals.
 2. Method according to claim 1, characterized in that the pulse width of the measurement signals produced by the two-wire sensor are pulse-width modulated as a function of the physical parameter to be measured.
 3. Method according to claim 2, characterized in that the two-wire sensor produces an error signal with a specifiable pulse-width ratio to indicate an error or a malfunction.
 4. Method according to claim 3, characterized in that the pulse-width ratio of the error signal is 1:1.
 5. Method according to claims 1, characterized in that the two-wire sensor produces measurement signals (PWM) with asymmetrical pulse-width ratios to display the physical parameter to be measured.
 6. Method according to claim 1, characterized in that the two-wire sensor produces a first measurement signal with a specifiable pulse-width ratio and a second measurement signal by inversion of the first measurement signal for displaying one of only two states or values.
 7. Method according to claim 1, characterized in that the two-wire sensor produces an identification signal with a specifiable pulse-width ratio for its identification or addressing.
 8. Method according to claim 7, characterized in that the pulse-width modulated signals are evaluated by measuring the pulse width.
 9. Method according to claim 7, characterized in that the pulse-width modulated signals are evaluated by filtration by means of a low-pass filter.
 10. Method according to claim 9, characterized in that the pulse-width modulated signals (PWM) are transmitted during a time window.
 11. Method according to claim 10, characterized in that the time window is produced by turning the supply voltage on and off, by the pulse-width modulated signal (PWM) of the two-wire sensor itself or by a chip enable input of the two-wire sensor.
 12. Method according to claim 11, characterized in that a plurality of two-wire sensors are connected to a common two-wire line and operated in time-multiplex mode.
 13. Method according to claim 12, characterized in that the two-wire sensors are identified by addresses assigned to them and stored in a memory.
 14. Method according to claim 12, characterized in that various switching thresholds are provided for the chip enable inputs for identifying the two-wire sensors and the chip enable inputs are connected to one another through an enable line.
 15. Method according to claim 14, characterized in that a time window is defined by the time-domain zero crossing, maximum or minimum of the analog sensor signal and that the time window ends with the next zero crossing, maximum or minimum, as applicable, of the analog sensor signal.
 16. Method according to claim 15, characterized in that at least one edge of the time window (ZF) reproduces the time variation of the sensor signal.
 17. Method according to claim 16, characterized in that the two-wire sensors feed current into the chip enable inputs, which current is evaluated in the two-wire sensors in order to transmit additional information by varying the pulse-width ratio.
 18. Two-wire sensor for measuring a physical parameter, characterized in that the signals (PWM) produced by the two-wire sensor are pulse-width modulated.
 19. Two-wire sensor according to claim 18, characterized in that the pulse width of the measurement signals (PWM) produced by the two-wire sensor are pulse-width modulated as a function of the physical parameter to be measured.
 20. Two-wire sensor according to claim 19, characterized in that an error signal with a specifiable pulse-width ratio is provided for indicating an error or a malfunction of the two-wire sensor.
 21. Two-wire sensor according to claim 20, characterized in that the pulse-width ratio of the error signal is 1:1.
 22. Two-wire sensor according to claim 21, characterized in that measurement signals (PWM) with asymmetric pulse-width ratios are provided for displaying the physical parameter to be measured.
 23. Two-wire sensor according to claim 22, characterized in that a first measurement signal with a specifiable asymmetric pulse-width ratio and a second measurement signal, formed by inversion of the first measurement signal, are provided for displaying a physical parameter that can have only two states or values.
 24. Two-wire sensor according to claim 23, characterized in that an identification signal with a specifiable pulse-width ratio is provided for identification or addressing of the two-wire sensor.
 25. Two-wire sensor according to claim 24, characterized in that one terminal of the two-wire sensor, at which the pulse-width modulated signals (PWM) can be tapped, is connected through a resistor to a supply voltage while the other terminal is grounded.
 26. Two-wire sensor according to claim 18, characterized in that the pulse-width modulated signal (PWM) can be transmitted during a time window.
 27. Two-wire sensor according to claim 26, characterized in that the time window can be produced by turning the supply voltage on and off, by the pulse-width modulated signal (PWM) of the two-wire sensor itself or by a chip enable input of the two-wire sensor.
 28. Device having at least one two-wire sensor for measuring a physical parameter, characterized in that a plurality of two-wire sensors are connected to a common two-wire line and operated in time-multiplex mode and that the signals produced by the two-wire sensors are pulse-width modulated.
 29. Device according to claim 28, characterized in that the two-wire sensors are identifiable by addresses assigned to them and stored in a memory.
 30. Device according to claim 29, characterized in that various switching thresholds are provided for the chip enable inputs for identifying the two-wire sensors and the chip enable inputs are connected to one another through an enable line.
 31. Device according to claim 30, characterized in that a time window is defined by the time-domain zero crossing, maximum or minimum of the analog sensor signal and that the time window ends with the next zero crossing, maximum or minimum, as applicable, of the analog sensor signal.
 32. Device according to claim 31, characterized in that at least one edge of the time window reproduces the time variation of the sensor signal.
 33. Device according to claim 32, characterized in that currents can be fed into the chip enable inputs in order to modulate the pulse-width ratio.
 34. The device of claim 33, wherein the rise time Trp and the drop time Tfp of the pulses of the pulse-width modulated signal are chosen or are such that they fulfill the following inequalities: Trp<Tp·Rp/2Tfp<Tp·Rp/2 where Tp is the period time of the pulse-width modulated signal (PWM) and Rp is the ratio of the shortest high level to the period time. 